﻿using MiniFox.Infrastructure.Attributes;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.Applications.Models
{
    /// <summary>
    /// 
    /// </summary>
    [TreeNode("DeptID", "SuperID", "Ordinal", "OrganizationID")]
    public class Dept
    {
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("deptId")]
        public string DeptID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public string SuperID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("deptName")]
        public string DeptName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("description")]
        public string Description {  get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public string DeptPath { get; set; }
        /// <summary>
        /// 排序值
        /// </summary>
        [JsonProperty("ordinal")]
        public int Ordinal { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("director")]
        public string Director {  get; set; }
        /// <summary>
        /// 成员数量
        /// </summary>
        [JsonProperty("director")]
        public int MemberCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public string OrganizationID { get; set; }
    }
}
